﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?php
header("Content-Type:text/html; charset=utf-8");

require_once dirname(__FILE__) . "/../PUB/class/tools/ServerFunction.class.php";
require_once dirname(__FILE__) . "/../PUB/class/db/DAB.class.php";
require_once "Constant.class.php";

$dab=new DAB("");

$dab->connectDB($db_alias);

$sql="select cls_no from cls_stu_data group by cls_no";

$rs=$dab->query($sql);
?>
<HTML><HEAD><TITLE>電腦網路應用班的網站</TITLE>
        <META http-equiv=Content-Type content="text/html; charset=UTF8">
    </HEAD>
    <BODY bgcolor="#99CCFF" style="background-color: #99CCFF">
        <P align="center"><font size="6" face="標楷體">國立溪湖高級中學(資訊課程)的教學資源網站</font></P>
        <div align="center">
            <table border="1" width="672" id="table1">
                <tr>
                    <td align="center"><font face="標楷體" size="5" color="#0000FF">曾一宏老師</font></td>
                    <td align="center"><font face="標楷體" size="5" color="#0000FF">
                            <a href="http://stud.hhsh.chc.edu.tw/~t02">潘秀欽老師</a></font>
                    </td>
                    <td align="center"><font face="標楷體" size="5" color="#0000FF">林宏欣老師</font></td>
                    <td align="center"><font face="標楷體" size="5" color="#0000FF">
                            <a href="http://stud.hhsh.chc.edu.tw/~t05/index.html">黃信忠老師</a></font></td>
                </tr>
            </table>
            <P align="center">
                <b>
                    <font size="5" color="#008000" face="標楷體">學生班級WWW網站：</font>
                    <font face="標楷體" size="5" color="#FF0000">個人資料，請養成備份習慣。</font>
                </b>
            </P>
            <a href="http://stud.hhsh.chc.edu.tw/Typing Credential_Setup_20070805cht.rar">MOCC打字練習</a>
            <a href="http://stud.hhsh.chc.edu.tw/liu2000.exe">無蝦米練習</a>
            <P align="center">
                <font color="#FFFFFF"><a href="http://music.hhsh.chc.edu.tw/fixed/fixed.php">溪湖高中電腦教室報修系統</a></font>
                <font color="#0000FF" size="2"> ----------<a href="<?=htmlentities($_SERVER['PHP_SELF']); ?>">首頁</a></font>
            </P>
            <b><font color="#800000" size="4"><a onclick="return top.js.OpenExtLink(window,event,this)" target="_blank" href="http://<?php echo $_SERVER['SERVER_NAME']?>:20000/">
                個人密碼更改
            </a></font></b>
        </div>

        <div align="center">
            <table border="1" width="672" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
                <?php
                    $row_count=0;
                    $year_kind="";//年級別
                    $year_desc = array("一年級","二年級","三年級");

//                    print_r($rs);return;
                    foreach ($rs as $row){
                        if($row_count%5==0 && $row_count<>0){echo "<tr>";}

                        if($year_kind <> substr($row[0], 0,1)){
                            $year_kind = substr($row[0], 0,1);

                            echo '<td colspan="5" style="background-color: #9933FF; border-style: solid; border-color: #FF00FF" align="center">';
                            echo '<font size="5"><b>'.$year_desc[$year_kind-1].'</b></font>';
                            echo '</td></tr><tr>';
                        }
                        
                        
                        echo '<td style="background-color: #FF9933; border-style: solid; border-color: #FF00FF" width="111" align="center">';
                        echo '<b><u><font size="5" color="#0000FF">';
                        echo '<a href="http://'.$_SERVER['SERVER_NAME'].'/SHS/stu_list.php?class='.$row["cls_no"].'">Class'.$row["cls_no"].'</a>';
                        echo '</font></u></b></td>';
                        
                        if($row_count%5==4 && $row_count<>0){echo "</tr>";}
                        
                        $row_count++;
                    }
                ?>
            </table>
        </div>
        <P align="center"><b><font size="4" color="#FF00FF">相關資源網站連結：</font></b></P>
        <div align="center">
            <center>
                <table border="1" width="672" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="background-color: #008000; border-style: solid; border-color: #FF00FF" width="222" align="center">
                            <font size="4"><b><a href="http://www.hhsh.chc.edu.tw/">國立溪高</a></b></font></td>
                        <td style="background-color: #008000; border-style: solid; border-color: #FF00FF" width="222" align="center">
                            <b><font size="4"><a href="http://tw.yahoo.com/">奇摩雅虎</a></font></b></td>

                        <td style="background-color: #008000; border-style: solid; border-color: #FF00FF" width="224" align="center">
                            <b><font size="4"><a href="http://www.msn.com.tw/">微軟網站</a></font></b></td>
                    </tr>
                    <tr>
                        <td style="background-color: #808000; border-style: solid; border-color: #FF00FF" width="222" align="center">
                            <font size="4"><b><a href="http://lib.hhsh.chc.edu.tw/">溪高書館</a></b></font></td>
                        <td style="background-color: #808000; border-style: solid; border-color: #FF00FF" width="222" align="center">
                            <b><font size="4"><a href="http://www.google.com.tw/">GOOGLE</a></font></b></td>

                        <td style="background-color: #808000; border-style: solid; border-color: #FF00FF" width="224" align="center">
                            <b><font size="4"><a href="http://www.wretch.cc/">無名小站</a></font></b></td>
                    </tr>
                </table>
            </center>
        </div>


    </BODY></HTML>